#coding=utf-8
'''
Created on Aug 3, 2016

@author: wangpeng
'''

#coding=utf-8
'''
Created on Aug 2, 2016

@author: wangpeng
'''
import unittest
from appium import webdriver
from selenium.webdriver.common.by import By   #用于匹配某个值是否出现，智能等待
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import time
import common_setting.logging_save
import common_setting.desired_setting
import common_setting.config
import common_setting.Create_Log_Folder
import sys
reload(sys)
sys.setdefaultencoding('utf8')
import os

desired_setting = common_setting.desired_setting.desired_setting()
driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_setting)
time.sleep(10)
driver.quit()
time.sleep(2)
print '2'
import test2
print 'aaa'
print test2.name_detect
print '3'
time.sleep(5)

#driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_setting)
print '5'
time.sleep(2)